package com.datastructures2.skipTable;

import java.util.*;
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @author MaoLin Wang
 * @description
 * @date 2020/9/4 12:13 上午
 */
public class Main {
    public static void main(String[] args) {
        SkipList2 skipList=new SkipList2();
        ThreadLocalRandom random=ThreadLocalRandom.current();
        skipList.insert(1);
        skipList.insert(3);
        skipList.insert(4);
        skipList.insert(5);
        skipList.insert(6);
        skipList.insert(7);
        skipList.insert(8);
        skipList.insert(9);
        skipList.insert(10);
        skipList.insert(13);
        skipList.insert(3);
        skipList.insert(16);
        skipList.insert(17);
        skipList.insert(18);
        Set set=new LinkedHashSet();
        System.out.println(skipList.toString());
        System.out.println(skipList.find(7));
        List<Integer> between = skipList.between(9, 17);
        System.out.println(between);

    }
}
